//
//  EMMMyMineViewController.m
//  EMMApp
//
//  Created by Mac on 16/6/29.
//  Copyright © 2016年 YiXun. All rights reserved.
//

#import "EMMMyMineViewController.h"

/** ViewController
 *
 *  ViewController导入.h文件
 */
#import "MyNewSetViewController.h"
#import "PersonalViewController.h"
#import "TeamViewController.h"
#import "ProjectModel.h"

/** Cell
 *
 *  首页Cell导入.h文件
 */
#import "MineOneCell.h"
#import "MineTwoCell.h"
#import "MineThreeCell.h"
#import "MySetCell.h"

/** Api
 *
 *  Api导入.h文件
 */
#import "GetMemberInfoApi.h"
#import "GetMemberScoreListApi.h"

/** 第三方库
 *
 *  第三方库导入.h文件
 */
#import "UIColor+Extension.h"

@interface EMMMyMineViewController ()<UITableViewDelegate,UITableViewDataSource>

/**
 *  时间字段Id
 */
@property (nonatomic, strong) NSString *timer;

/**
 *  时间字段名称
 */
@property (nonatomic, strong) NSString *tierXZ;

/**
 *  判断是否 YES/NO
 */
@property (nonatomic, assign) BOOL isShowUI;

/**
 *  创建UITableView
 */
@property (nonatomic, strong) UITableView *examineListTableView;

/**
 *  GetMemberInfo - model
 */
@property (nonatomic, strong) GetMemberInfo *getMemberInfo;

/**
 *  GetMemberScoreList - model
 */
@property (nonatomic, strong) GetMemberScoreList *getMemberScoreList;

/**
 *  导航View
 */
@property (nonatomic, strong) MenuLitsView *menuM;

/**
 *  导航数组
 */
@property (nonatomic, strong) NSMutableArray *menuListM;

/**
 *  导航数组名称
 */
@property (nonatomic, strong) NSMutableArray *menuArrM;

/**
 *  导航透明View
 */
@property (nonatomic, strong) UIView *nvView;

@end

@implementation EMMMyMineViewController

#pragma mark - 初始化
- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor colorFromHexCode:@"#f7f7f7"];
    _examineListTableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, EMM_WIDTH, EMM_HEIGHT-SafeAreaBottomHeight) style:UITableViewStylePlain];
    _examineListTableView.delegate = self;
    _examineListTableView.dataSource = self;
    _examineListTableView.backgroundColor = [UIColor colorFromHexCode:@"#f7f7f7"];
    _examineListTableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    if (@available(iOS 11.0, *)){
        _examineListTableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
        _examineListTableView.contentInset = UIEdgeInsetsMake(0, 0, 49, 0);//导航栏如果使用系统原生半透明的，top设置为64
        _examineListTableView.scrollIndicatorInsets = _examineListTableView.contentInset;
    }
    [self.view addSubview:_examineListTableView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

#pragma mark - 生命周期函数调用方法
/**
 *  功能描述：
 *  第一次进入个人页面，我的战绩等数据的拉取Api
 *  更新时间：2016/12/22
 *  更新人：guowei
 */
- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:YES animated:YES];
    [[EMMAppChecker sharedInstance] startCheckVgoUpdate];

    [self PostGetMemberInfoApi];
    NSUserDefaults *userdf = [NSUserDefaults standardUserDefaults];
    NSString *isGradesMine = [userdf objectForKey:@"isGradesMine"];//我的菜单权限下按钮权限：我的成绩
    if ([NSString isStringEmpty2:isGradesMine] == NO) {
        if ([isGradesMine isEqualToString:@"1"]) {
            _timer = @"1";
            _tierXZ = @"今天";
            [self PostGetMemberScoreListApiTimeType:_timer];
        }
    }
    _menuListM = [[NSMutableArray alloc] init];
    _menuArrM = [[NSMutableArray alloc] init];
    [self postGetProjectListApi];
    [self creatRemoveFromSuperview];
    [self creatNavigationController];
}

#pragma mark - 切换项目IAP调用方法
/**
 *  功能描述：
 *  拉取项目Api接口
 *  更新时间：2016/12/22
 *  更新人：guowei
 */
- (void)postGetProjectListApi {
    [_menuListM removeAllObjects];
    [_menuArrM removeAllObjects];
    NSUserDefaults *us = [NSUserDefaults standardUserDefaults];
    NSMutableArray *projectDataArray = [us objectForKey:@"projectArray"];
    if (projectDataArray.count > 0 ) {
        NSMutableArray *arr = [[NSMutableArray alloc] init];
        for (int i = 0; i < projectDataArray.count; i++) {
            NSData *data = projectDataArray[i];
            ProjectModel *model = [NSKeyedUnarchiver unarchiveObjectWithData:data];
            [_menuListM addObject:model.projectName];
            ProjectList *lsit = [[ProjectList alloc] init];
            lsit.projectName = model.projectName;
            lsit.projectId = model.projectId;
            lsit.projectCode = model.projectCode;
            [_menuArrM addObject:lsit];
            [arr addObject:lsit.projectCode];
        }
        NSUserDefaults *userdf = [NSUserDefaults standardUserDefaults];
        NSString *projectCode = [userdf objectForKey:@"projectCode"];
        for (int i = 0; i < arr.count; i++) {
            NSString *pro = [arr objectAtIndex:i];
            if ([pro isEqualToString:projectCode]) {
                [userdf setObject:[NSString stringWithFormat:@"%d",i] forKey:@"indexString"];
                [userdf synchronize];
            }else {
            }
        }
    }
}

#pragma mark - 导航
/**
 *  功能描述：
 *  初始化创建导航栏
 *  更新时间：2016/12/22
 *  更新人：guowei
 */
- (void)creatNavigationController {
    NSUserDefaults *userdf = [NSUserDefaults standardUserDefaults];
    NSString *token = [userdf objectForKey:@"is_login"];
    NSString *projectName;
    if ([NSString isStringEmpty2:token] == NO) {
        projectName  = [userdf objectForKey:@"projectName"];
    }
    NavigationView *view = [[NavigationView alloc] initWithFrame:CGRectMake(0, SafeAreaTopHeight-44, EMM_WIDTH, 44) title:projectName colo:@"2"];
    UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
    [button addTarget:self action:@selector(showPopover:) forControlEvents:UIControlEventTouchUpInside];
    [button setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    button.frame = CGRectMake(0, 0, view.frame.size.width, 44.0);
    button.titleLabel.font = [UIFont systemFontOfSize:16];
    button.tag = 101;
    button.titleLabel.textAlignment = NSTextAlignmentCenter;
    button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
    [view addSubview:button];
    
    _nvView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, EMM_HEIGHT, SafeAreaTopHeight)];
    _nvView.backgroundColor = [UIColor clearColor];
    [self.view addSubview:_nvView];
    UIImageView *imv = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, EMM_HEIGHT, SafeAreaTopHeight)];
    imv.image = [UIImage imageNamed:@"top.png"];
    [_nvView addSubview:imv];
    [_nvView addSubview:view];
}

#pragma mark - 删除导航View调用方法
/**
 *  功能描述：
 *  删除导航栏
 *  更新时间：2016/12/22
 *  更新人：guowei
 */
- (void)creatRemoveFromSuperview{
    [_nvView removeFromSuperview];
    _nvView = nil;
}

#pragma mark - 显示app商家列表
/**
 *  功能描述：
 *  控制切换项目列表显示与隐藏
 *  更新时间：2016/12/22
 *  更新人：guowei
 */
- (void)showPopover:(UIButton *)button {
    if (_isShowUI == YES) {
        [self removeMenuLitsViewSubView];
        [self creatView];
        _isShowUI = NO;
    }else {
        [self removeMenuLitsViewSubView];
        _isShowUI = YES;
    }
}

#pragma mark - 创建弹出项目切换方法
/**
 *  功能描述：
 *  创建项目列表方法
 *  更新时间：2016/12/22
 *  更新人：guowei
 */
- (void)creatView {
    NSUserDefaults *userdf = [NSUserDefaults standardUserDefaults];
    NSString *num = [userdf objectForKey:@"indexString"];
    NSInteger h = 0;
    if (_menuListM.count > 6) {
        h = 6*50;
    }else {
        h = _menuListM.count * 50;
    }
    _menuM = [[MenuLitsView alloc] initWithFrame:CGRectMake(0, SafeAreaTopHeight, EMM_WIDTH, EMM_HEIGHT-SafeAreaTopHeight) items:_menuListM indet:num isShowUI:YES guodu:h];
    _menuM.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.5];
    [[UIApplication sharedApplication].keyWindow addSubview:_menuM];
    __weak MenuLitsView *weakSelf = _menuM;
    [weakSelf setMenuLitsBlock:^(NSString *title, NSString *indet) {
        if ([NSString isStringEmpty2:title] == NO) {
            _isShowUI = YES;
        } else {
            _isShowUI = YES;
        }
        if ([NSString isStringEmpty2:indet] == NO) {
            ProjectList *lsit1 = _menuArrM[[indet intValue]];
            NSUserDefaults *userdf = [NSUserDefaults standardUserDefaults];
            [userdf setObject:lsit1.projectCode forKey:@"projectCode"];
            [userdf setObject:lsit1.projectId forKey:@"projectId"];
            [userdf setObject:lsit1.projectName forKey:@"projectName"];
            [userdf setObject:indet forKey:@"indexString"];
            [userdf synchronize];
            [self creatRemoveFromSuperview];
            [self creatNavigationController];
            NSString *isGradesMine = [userdf objectForKey:@"isGradesMine"];//我的菜单权限下按钮权限：我的成绩
            if ([NSString isStringEmpty2:isGradesMine] == NO) {
                if ([isGradesMine isEqualToString:@"1"]) {
                    [self PostGetMemberScoreListApiTimeType:_timer];
                }
            }
            [[MerchantResourceVModel merchantResourceVModel] startMerchantResourceVModel];
        }
        [weakSelf removeFromSuperview];
    }];
}

#pragma mark - 删除项目View方法调用
- (void)removeMenuLitsViewSubView {
    [_menuM removeFromSuperview];
    _menuM = nil;
}

#pragma mark - 我的界面数据Api调用的方法
/**
 *  功能描述：
 *  我的界面Api接口
 *  更新时间：2016/12/22
 *  更新人：guowei
 */
- (void)PostGetMemberInfoApi {
    [self showHudInWindow:@"正在加载请稍等..."];
    GetMemberInfoApi *api = [[GetMemberInfoApi alloc] initWith];
    [api startWithCompletionBlockWithSuccess:^(YTKBaseRequest *request) {
        GetMemberInfoApi *result = (GetMemberInfoApi *)request;
        if (result.isSuccess) {
            GetMemberInfo *get = result.resultData;
            _getMemberInfo = get;
        } else {
            NSUserDefaults *userdf = [NSUserDefaults standardUserDefaults];
            NSString *projectCode = [userdf objectForKey:@"projectCode"];
            if ([NSString isStringEmpty2:projectCode] == NO) {
                [self showToast:result.resultData.errorMsg];
            }
            /*
             提示语：账号权限发生变动，请重新登录
             code随机18位唯一码：108E65843mYuwqb01X
             //YUplf0wyU5vPVssLSG 对应的异地登录退出登录
             */
            if ([result.resultData.errorCode isEqualToString:@"YUplf0wyU5vPVssLSG"] || [result.resultData.errorCode isEqualToString:@"108E65843mYuwqb01X"]) {
                NSUserDefaults *defs = [NSUserDefaults standardUserDefaults];
                NSDictionary *dictionary = [defs dictionaryRepresentation];
                for(NSString *key in [dictionary allKeys]){
                    if ([key isEqualToString:@"DeviceToken123"] ||
                        [key isEqualToString:@"loginText"] ||
                        [key isEqualToString:@"provinceCityDistrict"]) {
                    }else {
                        [defs removeObjectForKey:key];
                        [defs synchronize];
                    }
                }
                UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"温馨提示" message:result.resultData.errorMsg preferredStyle:UIAlertControllerStyleAlert];
                UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleCancel handler:^(UIAlertAction *action) {
                    [appInstance showLogin];
                }];
                [alertController addAction:cancelAction];
                [self presentViewController:alertController animated:YES completion:nil];
            }
        }
        [_examineListTableView reloadData];
        [self hideHud];
    } failure:^(YTKBaseRequest *request) {
        [self showToast:@"连接服务器失败，请检查网络！"];
        [self hideHud];
    }];
}

#pragma mark - 我的认筹、认购、签约数据Api调用方法
/**
 *  功能描述：
 *  我的战绩（认筹，认购，签约，回款）Api接口
 *  更新时间：2016/12/22
 *  更新人：guowei
 */
- (void)PostGetMemberScoreListApiTimeType:(NSString *)timeType {
    NSUserDefaults *userdf = [NSUserDefaults standardUserDefaults];
    NSString *projectCode = [userdf objectForKey:@"projectCode"];
    GetMemberScoreListApi *api = [[GetMemberScoreListApi alloc] initWithProjectCode:projectCode timeType:timeType scoreCategory:@"1"];
    [api startWithCompletionBlockWithSuccess:^(YTKBaseRequest *request) {
        GetMemberScoreListApi *result = (GetMemberScoreListApi *)request;
        if (result.isSuccess) {
            GetMemberScoreList *get = result.resultData;
            _getMemberScoreList = get;
        } else {
            NSUserDefaults *userdf = [NSUserDefaults standardUserDefaults];
            NSString *projectCode = [userdf objectForKey:@"projectCode"];
            if ([NSString isStringEmpty2:projectCode] == NO) {
                [self showToast:result.resultData.errorMsg];
            }
            if ([result.resultData.errorCode isEqualToString:@"YUplf0wyU5vPVssLSG"] || [result.resultData.errorCode isEqualToString:@"108E65843mYuwqb01X"]) {
                NSUserDefaults *defs = [NSUserDefaults standardUserDefaults];
                NSDictionary *dictionary = [defs dictionaryRepresentation];
                for(NSString *key in [dictionary allKeys]){
                    if ([key isEqualToString:@"DeviceToken123"] ||
                        [key isEqualToString:@"loginText"] ||
                        [key isEqualToString:@"provinceCityDistrict"]) {
                    }else {
                        [defs removeObjectForKey:key];
                        [defs synchronize];
                    }
                }
                UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"温馨提示" message:result.resultData.errorMsg preferredStyle:UIAlertControllerStyleAlert];
                UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleCancel handler:^(UIAlertAction *action) {
                    [appInstance showLogin];
                }];
                [alertController addAction:cancelAction];
                [self presentViewController:alertController animated:YES completion:nil];
            }
        }
        [_examineListTableView reloadData];
        [self hideHud];
    } failure:^(YTKBaseRequest *request) {
        [self showToast:@"连接服务器失败，请检查网络！"];
        [self hideHud];
    }];
}

#pragma mark - 弹出时间选择框UIButton调用方法
/**
 *  功能描述：
 *  根据时间查看我的战绩按钮事件
 *  更新时间：2016/12/22
 *  更新人：guowei
 */
- (void)timerXZBtnClick:(UIButton *)btn {
    //1、今天（默认）；2、昨天；3、本周；4、上周；5、本月；6、上月；7、近三月；8、今年
    NSArray *arr = [NSArray arrayWithObjects:
                    @"今天",@"昨天",@"本周",
                    @"上周",@"本月",@"上月",@"近三月",@"今年", nil];
    ShowMenuView *menuView = [[ShowMenuView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height) title:@"选项" titleNmae:@"选择时间" numLits:nil items:arr];
    menuView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.5];
    [[UIApplication sharedApplication].keyWindow addSubview:menuView];
    __block ShowMenuView *weakMenuView = menuView;
    __block EMMMyMineViewController *blockSelf = self;
    [menuView setTouchBlock:^(NSString *indet,NSString *number) {
        NSLog(@"%@",indet);
        if ([NSString isStringEmpty2:indet] == NO) {
            _tierXZ = indet;
            _timer = number;
            [blockSelf PostGetMemberScoreListApiTimeType:_timer];
        }
        [weakMenuView removeFromSuperview];
    }];
}

#pragma mark - UITableView 代理
/**
 *  功能描述：
 *  UITableView代理方法事件
 *  更新时间：2016/12/22
 *  更新人：guowei
 */
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    NSUserDefaults *userdf = [NSUserDefaults standardUserDefaults];
    NSString *isGradesMine = [userdf objectForKey:@"isGradesMine"];//我的菜单权限下按钮权限：我的成绩
    NSString *isHeroListMine = [userdf objectForKey:@"isHeroListMine"];//我的菜单权限下按钮权限：个人英雄榜
    NSString *isTeamRankingMine = [userdf objectForKey:@"isTeamRankingMine"];//我的菜单权限下按钮权限：团队排名
    if ([isGradesMine isEqualToString:@"1"] && [isHeroListMine isEqualToString:@"1"] && [isTeamRankingMine isEqualToString:@"1"]) {
        return 5;
    } else if ([isGradesMine isEqualToString:@"0"] && [isHeroListMine isEqualToString:@"1"] && [isTeamRankingMine isEqualToString:@"1"]) {
        return 4;
    } else if ([isGradesMine isEqualToString:@"1"] && [isHeroListMine isEqualToString:@"0"] && [isTeamRankingMine isEqualToString:@"1"]) {
        return 4;
    } else if ([isGradesMine isEqualToString:@"1"] && [isHeroListMine isEqualToString:@"1"] && [isTeamRankingMine isEqualToString:@"0"]) {
        return 4;
    } else if ([isGradesMine isEqualToString:@"1"] && [isHeroListMine isEqualToString:@"0"] && [isTeamRankingMine isEqualToString:@"0"]) {
        return 3;
    } else if ([isGradesMine isEqualToString:@"0"] && [isHeroListMine isEqualToString:@"1"] && [isTeamRankingMine isEqualToString:@"0"]) {
        return 3;
    } else if ([isGradesMine isEqualToString:@"0"] && [isHeroListMine isEqualToString:@"0"] && [isTeamRankingMine isEqualToString:@"1"]) {
        return 3;
    } else if ([isGradesMine isEqualToString:@"0"] && [isHeroListMine isEqualToString:@"0"] && [isTeamRankingMine isEqualToString:@"0"]) {
        return 2;
    } else {
        return 2;
    }
    return 0;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    NSUserDefaults *userdf = [NSUserDefaults standardUserDefaults];
    NSString *isGradesMine = [userdf objectForKey:@"isGradesMine"];//我的菜单权限下按钮权限：我的成绩
    NSString *isHeroListMine = [userdf objectForKey:@"isHeroListMine"];//我的菜单权限下按钮权限：个人英雄榜
    NSString *isTeamRankingMine = [userdf objectForKey:@"isTeamRankingMine"];//我的菜单权限下按钮权限：团队排名
     
    if ([isGradesMine isEqualToString:@"1"] && [isHeroListMine isEqualToString:@"1"] && [isTeamRankingMine isEqualToString:@"1"]) {
        if (indexPath.row == 0) {
            return 244;
        }else if (indexPath.row == 1) {
            return 170;
        }else {
            return 60;
        }
    } else if ([isGradesMine isEqualToString:@"0"] && [isHeroListMine isEqualToString:@"1"] && [isTeamRankingMine isEqualToString:@"1"]) {
        if (indexPath.row == 0) {
            return 244;
        }else {
            return 60;
        }
    } else if ([isGradesMine isEqualToString:@"1"] && [isHeroListMine isEqualToString:@"0"] && [isTeamRankingMine isEqualToString:@"1"]) {
        if (indexPath.row == 0) {
            return 244;
        }else if (indexPath.row == 1) {
            return 170;
        }else {
            return 60;
        }
    } else if ([isGradesMine isEqualToString:@"1"] && [isHeroListMine isEqualToString:@"1"] && [isTeamRankingMine isEqualToString:@"0"]) {
        if (indexPath.row == 0) {
            return 244;
        }else if (indexPath.row == 1) {
            return 170;
        }else {
            return 60;
        }
    } else if ([isGradesMine isEqualToString:@"1"] && [isHeroListMine isEqualToString:@"0"] && [isTeamRankingMine isEqualToString:@"0"]) {
        if (indexPath.row == 0) {
            return 244;
        }else if (indexPath.row == 1) {
            return 170;
        }else {
            return 60;
        }
    } else if ([isGradesMine isEqualToString:@"0"] && [isHeroListMine isEqualToString:@"1"] && [isTeamRankingMine isEqualToString:@"0"]) {
        if (indexPath.row == 0) {
            return 244;
        }else {
            return 60;
        }
    } else if ([isGradesMine isEqualToString:@"0"] && [isHeroListMine isEqualToString:@"0"] && [isTeamRankingMine isEqualToString:@"1"]) {
        if (indexPath.row == 0) {
            return 244;
        }else {
            return 60;
        }
    } else if ([isGradesMine isEqualToString:@"0"] && [isHeroListMine isEqualToString:@"0"] && [isTeamRankingMine isEqualToString:@"0"]) {
        if (indexPath.row == 0) {
            return 244;
        }else {
            return 60;
        }
    } else {
        if (indexPath.row == 0) {
            return 244;
        }else {
            return 60;
        }
    }
    return 0;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    NSString *cellId = @"MySetCellId";
    MySetCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
    if (cell == nil) {
        cell = [[[NSBundle mainBundle] loadNibNamed:@"MySetCell" owner:self options:nil] lastObject];
    }
    cell.backgroundColor = [UIColor whiteColor];
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    NSUserDefaults *userdf = [NSUserDefaults standardUserDefaults];
    NSString *isGradesMine = [userdf objectForKey:@"isGradesMine"];//我的菜单权限下按钮权限：我的成绩
    NSString *isHeroListMine = [userdf objectForKey:@"isHeroListMine"];//我的菜单权限下按钮权限：个人英雄榜
    NSString *isTeamRankingMine = [userdf objectForKey:@"isTeamRankingMine"];//我的菜单权限下按钮权限：团队排名
    if ([isGradesMine isEqualToString:@"1"] && [isHeroListMine isEqualToString:@"1"] && [isTeamRankingMine isEqualToString:@"1"]) {
        if (indexPath.row == 0) {
            NSString *cellId = @"MineOneCellId";
            MineOneCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
            if (cell == nil) {
                cell = [[[NSBundle mainBundle] loadNibNamed:@"MineOneCell" owner:self options:nil] lastObject];
            }
            cell.backgroundColor = [UIColor whiteColor];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            cell.touxiangImageView.frame = CGRectMake((EMM_WIDTH-80)/2, 45, 80, 80);
            [cell.touxiangImageView.layer setCornerRadius:(cell.touxiangImageView.frame.size.height/2)];
            [cell.touxiangImageView.layer setMasksToBounds:YES];
            [cell.touxiangImageView setContentMode:UIViewContentModeScaleAspectFill];
            [cell.touxiangImageView setClipsToBounds:YES];
            cell.touxiangImageView.layer.shadowColor = [UIColor blackColor].CGColor;
            cell.touxiangImageView.layer.shadowOffset = CGSizeMake(4, 4);
            cell.touxiangImageView.layer.shadowOpacity = 0.5;
            cell.touxiangImageView.layer.shadowRadius = 1.0;
            cell.touxiangImageView.layer.borderColor = [[UIColor whiteColor] CGColor];
            cell.touxiangImageView.layer.borderWidth = 1.0f;
            cell.touxiangImageView.userInteractionEnabled = YES;
            cell.touxiangImageView.backgroundColor = [UIColor blackColor];
            if ([_getMemberInfo.headPic isEqualToString:@""]) {
                
            }else {
                [cell.touxiangImageView sd_setImageWithURL:[NSURL URLWithString:_getMemberInfo.headPic] placeholderImage:[UIImage imageNamed:@"touxiang"]];
            }
            cell.nameLabel.text = _getMemberInfo.name;
            cell.phonLabel.text = _getMemberInfo.mobile;
            return cell;
        }else if (indexPath.row == 1) {
            NSString *cellId = @"MineTwoCellId";
            MineTwoCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];            
            if (cell == nil) {
                cell = [[[NSBundle mainBundle] loadNibNamed:@"MineTwoCell" owner:self options:nil] lastObject];
            }
            cell.backgroundColor = [UIColor whiteColor];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            if ([NSString isStringEmpty2:_tierXZ] == NO) {
                cell.xzTitleLabel.text = _tierXZ;
            }else {
                cell.xzTitleLabel.text = @"今日";
            }
            UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 38, self.view.bounds.size.width, 2)];
            view.backgroundColor = [UIColor colorFromHexCode:@"e4e4e4"];

            [cell.xzBtn addTarget:self action:@selector(timerXZBtnClick:) forControlEvents:UIControlEventTouchUpInside];
            if ([NSString isStringEmpty2:_getMemberScoreList.rcScoreNum] == NO) {
                cell.num1.text = _getMemberScoreList.rcScoreNum;
            } else {
                cell.num1.text = @"0";
            }
            if ([NSString isStringEmpty2:_getMemberScoreList.rgScoreNum] == NO) {
                cell.num2.text = _getMemberScoreList.rgScoreNum;
            } else {
                cell.num2.text = @"0";
            }
            if ([NSString isStringEmpty2:_getMemberScoreList.qyScoreNum] == NO) {
                cell.num3.text = _getMemberScoreList.qyScoreNum;
            } else {
                cell.num3.text = @"0";
            }
            //回款金额
            if ([NSString isStringEmpty2:_getMemberScoreList.returnAmount] == NO) {
                cell.num4.text = _getMemberScoreList.returnAmount;
            } else {
                cell.num4.text = @"0";
            }
            //认购金额
            if ([NSString isStringEmpty2:_getMemberScoreList.subscribeAmount] == NO) {
                cell.mony2.text = _getMemberScoreList.subscribeAmount;
            } else {
                cell.mony2.text = @"0";
            }
            //签约金额
            if ([NSString isStringEmpty2:_getMemberScoreList.signedAmount] == NO) {
                cell.mony3.text = _getMemberScoreList.signedAmount;
            } else {
                cell.mony3.text = @"0";
            }
          
            return cell;
        } else {
            NSString *cellId = @"MineThreeCellId";
            MineThreeCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
            if (cell == nil) {
                cell = [[[NSBundle mainBundle] loadNibNamed:@"MineThreeCell" owner:self options:nil] lastObject];
            }
            cell.backgroundColor = [UIColor whiteColor];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, EMM_WIDTH, 1)];
            imageView.backgroundColor = [UIColor colorFromHexCode:@"#e4e4e4"];
            [cell addSubview:imageView];
            UIImageView *imageView1 = [[UIImageView alloc] initWithFrame:CGRectMake(0, 9, EMM_WIDTH, 1)];
            imageView1.backgroundColor = [UIColor colorFromHexCode:@"#e4e4e4"];
            [cell addSubview:imageView1];
            cell.mineView.backgroundColor = [UIColor colorFromHexCode:@"#f7f7f7"];
            if (indexPath.row == 2) {
                cell.biaotIimageView.image = [UIImage imageNamed:@"my_yxb"];
                cell.biaotNameLabel.text = @"个人英雄榜";
            } else if (indexPath.row == 3) {
                cell.biaotIimageView.image = [UIImage imageNamed:@"my_team"];
                cell.biaotNameLabel.text = @"团队排名";
            } else if (indexPath.row == 4) {
                cell.biaotIimageView.image = [UIImage imageNamed:@"my_set"];
                cell.biaotNameLabel.text = @"设置";
                
                UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 59, self.view.bounds.size.width, 1)];
                
                view.backgroundColor = [UIColor colorFromHexCode:@"e4e4e4"];
                [cell.contentView addSubview:view];
            }
            return cell;
        }
    } else if ([isGradesMine isEqualToString:@"0"] && [isHeroListMine isEqualToString:@"1"] && [isTeamRankingMine isEqualToString:@"1"]) {
        if (indexPath.row == 0) {
            NSString *cellId = @"MineOneCellId";
            MineOneCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
            if (cell == nil) {
                cell = [[[NSBundle mainBundle] loadNibNamed:@"MineOneCell" owner:self options:nil] lastObject];
            }
            cell.backgroundColor = [UIColor whiteColor];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            cell.touxiangImageView.frame = CGRectMake((EMM_WIDTH-80)/2, 45, 80, 80);
            [cell.touxiangImageView.layer setCornerRadius:(cell.touxiangImageView.frame.size.height/2)];
            [cell.touxiangImageView.layer setMasksToBounds:YES];
            [cell.touxiangImageView setContentMode:UIViewContentModeScaleAspectFill];
            [cell.touxiangImageView setClipsToBounds:YES];
            cell.touxiangImageView.layer.shadowColor = [UIColor blackColor].CGColor;
            cell.touxiangImageView.layer.shadowOffset = CGSizeMake(4, 4);
            cell.touxiangImageView.layer.shadowOpacity = 0.5;
            cell.touxiangImageView.layer.shadowRadius = 1.0;
            cell.touxiangImageView.layer.borderColor = [[UIColor whiteColor] CGColor];
            cell.touxiangImageView.layer.borderWidth = 1.0f;
            cell.touxiangImageView.userInteractionEnabled = YES;
            cell.touxiangImageView.backgroundColor = [UIColor blackColor];
            if ([_getMemberInfo.headPic isEqualToString:@""]) {
                
            }else {
                [cell.touxiangImageView sd_setImageWithURL:[NSURL URLWithString:_getMemberInfo.headPic] placeholderImage:[UIImage imageNamed:@"touxiang"]];
            }
            cell.nameLabel.text = _getMemberInfo.name;
            cell.phonLabel.text = _getMemberInfo.mobile;
            return cell;
        } else {
            NSString *cellId = @"MineThreeCellId";
            MineThreeCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
            if (cell == nil) {
                cell = [[[NSBundle mainBundle] loadNibNamed:@"MineThreeCell" owner:self options:nil] lastObject];
            }
            cell.backgroundColor = [UIColor whiteColor];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, EMM_WIDTH, 1)];
            imageView.backgroundColor = [UIColor colorFromHexCode:@"#e4e4e4"];
            [cell addSubview:imageView];
            UIImageView *imageView1 = [[UIImageView alloc] initWithFrame:CGRectMake(0, 9, EMM_WIDTH, 1)];
            imageView1.backgroundColor = [UIColor colorFromHexCode:@"#e4e4e4"];
            [cell addSubview:imageView1];            cell.mineView.backgroundColor = [UIColor colorFromHexCode:@"#f7f7f7"];
            if (indexPath.row == 1) {
                cell.biaotIimageView.image = [UIImage imageNamed:@"my_yxb"];
                cell.biaotNameLabel.text = @"个人英雄榜";
            } else if (indexPath.row == 2) {
                cell.biaotIimageView.image = [UIImage imageNamed:@"my_team"];
                cell.biaotNameLabel.text = @"团队排名";
            } else if (indexPath.row == 3) {
                cell.biaotIimageView.image = [UIImage imageNamed:@"my_set"];
                cell.biaotNameLabel.text = @"设置";
                UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 59, self.view.bounds.size.width, 1)];
                view.backgroundColor = [UIColor colorFromHexCode:@"e4e4e4"];
                [cell.contentView addSubview:view];
            }
            return cell;
        }
    } else if ([isGradesMine isEqualToString:@"1"] && [isHeroListMine isEqualToString:@"0"] && [isTeamRankingMine isEqualToString:@"1"]) {
        if (indexPath.row == 0) {
            NSString *cellId = @"MineOneCellId";
            MineOneCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
            if (cell == nil) {
                cell = [[[NSBundle mainBundle] loadNibNamed:@"MineOneCell" owner:self options:nil] lastObject];
            }
            cell.backgroundColor = [UIColor whiteColor];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            cell.touxiangImageView.frame = CGRectMake((EMM_WIDTH-80)/2, 45, 80, 80);
            [cell.touxiangImageView.layer setCornerRadius:(cell.touxiangImageView.frame.size.height/2)];
            [cell.touxiangImageView.layer setMasksToBounds:YES];
            [cell.touxiangImageView setContentMode:UIViewContentModeScaleAspectFill];
            [cell.touxiangImageView setClipsToBounds:YES];
            cell.touxiangImageView.layer.shadowColor = [UIColor blackColor].CGColor;
            cell.touxiangImageView.layer.shadowOffset = CGSizeMake(4, 4);
            cell.touxiangImageView.layer.shadowOpacity = 0.5;
            cell.touxiangImageView.layer.shadowRadius = 1.0;
            cell.touxiangImageView.layer.borderColor = [[UIColor whiteColor] CGColor];
            cell.touxiangImageView.layer.borderWidth = 1.0f;
            cell.touxiangImageView.userInteractionEnabled = YES;
            cell.touxiangImageView.backgroundColor = [UIColor blackColor];
            if ([_getMemberInfo.headPic isEqualToString:@""]) {
            } else {
                [cell.touxiangImageView sd_setImageWithURL:[NSURL URLWithString:_getMemberInfo.headPic] placeholderImage:[UIImage imageNamed:@"touxiang"]];
            }
            cell.nameLabel.text = _getMemberInfo.name;
            cell.phonLabel.text = _getMemberInfo.mobile;
            return cell;
        } else if (indexPath.row == 1) {
            NSString *cellId = @"MineTwoCellId";
            MineTwoCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
        
            if (cell == nil) {
                cell = [[[NSBundle mainBundle] loadNibNamed:@"MineTwoCell" owner:self options:nil] lastObject];
            }
            cell.backgroundColor = [UIColor whiteColor];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            if ([NSString isStringEmpty2:_tierXZ] == NO) {
                cell.xzTitleLabel.text = _tierXZ;
            } else {
                cell.xzTitleLabel.text = @"今日";
            }
         
            [cell.xzBtn addTarget:self action:@selector(timerXZBtnClick:) forControlEvents:UIControlEventTouchUpInside];
            if ([NSString isStringEmpty2:_getMemberScoreList.rcScoreNum] == NO) {
                cell.num1.text = _getMemberScoreList.rcScoreNum;
            } else {
                cell.num1.text = @"0";
            }
            if ([NSString isStringEmpty2:_getMemberScoreList.rgScoreNum] == NO) {
                cell.num2.text = _getMemberScoreList.rgScoreNum;
            } else {
                cell.num2.text = @"0";
            }
            if ([NSString isStringEmpty2:_getMemberScoreList.qyScoreNum] == NO) {
                cell.num3.text = _getMemberScoreList.qyScoreNum;
            } else {
                cell.num3.text = @"0";
            }
            //回款金额
            if ([NSString isStringEmpty2:_getMemberScoreList.returnAmount] == NO) {
                cell.num4.text = _getMemberScoreList.returnAmount;
            } else {
                cell.num4.text = @"0";
            }
            //认购金额
            if ([NSString isStringEmpty2:_getMemberScoreList.subscribeAmount] == NO) {
                cell.mony2.text = _getMemberScoreList.subscribeAmount;
            } else {
                cell.mony2.text = @"0";
            }
            //签约金额
            if ([NSString isStringEmpty2:_getMemberScoreList.signedAmount] == NO) {
                cell.mony3.text = _getMemberScoreList.signedAmount;
            } else {
                cell.mony3.text = @"0";
            }
           
            return cell;
        } else {
            NSString *cellId = @"MineThreeCellId";
            MineThreeCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
            if (cell == nil) {
                cell = [[[NSBundle mainBundle] loadNibNamed:@"MineThreeCell" owner:self options:nil] lastObject];
            }
            cell.backgroundColor = [UIColor whiteColor];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, EMM_WIDTH, 1)];
            imageView.backgroundColor = [UIColor colorFromHexCode:@"#e4e4e4"];
            [cell addSubview:imageView];
            UIImageView *imageView1 = [[UIImageView alloc] initWithFrame:CGRectMake(0, 9, EMM_WIDTH, 1)];
            imageView1.backgroundColor = [UIColor colorFromHexCode:@"#e4e4e4"];
            [cell addSubview:imageView1];
            cell.mineView.backgroundColor = [UIColor colorFromHexCode:@"#f7f7f7"];
            if (indexPath.row == 2) {
                cell.biaotIimageView.image = [UIImage imageNamed:@"my_team"];
                cell.biaotNameLabel.text = @"团队排名";
            } else if (indexPath.row == 3) {
                cell.biaotIimageView.image = [UIImage imageNamed:@"my_set"];
                cell.biaotNameLabel.text = @"设置";
                UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 59, self.view.bounds.size.width, 1)];
                
                view.backgroundColor = [UIColor colorFromHexCode:@"e4e4e4"];
                [cell.contentView addSubview:view];
            }
            return cell;
        }
    } else if ([isGradesMine isEqualToString:@"1"] && [isHeroListMine isEqualToString:@"1"] && [isTeamRankingMine isEqualToString:@"0"]) {
        if (indexPath.row == 0) {
            NSString *cellId = @"MineOneCellId";
            MineOneCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
            if (cell == nil) {
                cell = [[[NSBundle mainBundle] loadNibNamed:@"MineOneCell" owner:self options:nil] lastObject];
            }
            cell.backgroundColor = [UIColor whiteColor];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            cell.touxiangImageView.frame = CGRectMake((EMM_WIDTH-80)/2, 45, 80, 80);
            [cell.touxiangImageView.layer setCornerRadius:(cell.touxiangImageView.frame.size.height/2)];
            [cell.touxiangImageView.layer setMasksToBounds:YES];
            [cell.touxiangImageView setContentMode:UIViewContentModeScaleAspectFill];
            [cell.touxiangImageView setClipsToBounds:YES];
            cell.touxiangImageView.layer.shadowColor = [UIColor blackColor].CGColor;
            cell.touxiangImageView.layer.shadowOffset = CGSizeMake(4, 4);
            cell.touxiangImageView.layer.shadowOpacity = 0.5;
            cell.touxiangImageView.layer.shadowRadius = 1.0;
            cell.touxiangImageView.layer.borderColor = [[UIColor whiteColor] CGColor];
            cell.touxiangImageView.layer.borderWidth = 1.0f;
            cell.touxiangImageView.userInteractionEnabled = YES;
            cell.touxiangImageView.backgroundColor = [UIColor blackColor];
            if ([_getMemberInfo.headPic isEqualToString:@""]) {
                
            } else {
                [cell.touxiangImageView sd_setImageWithURL:[NSURL URLWithString:_getMemberInfo.headPic] placeholderImage:[UIImage imageNamed:@"touxiang"]];
            }
            cell.nameLabel.text = _getMemberInfo.name;
            cell.phonLabel.text = _getMemberInfo.mobile;
            return cell;
        } else if (indexPath.row == 1) {
            NSString *cellId = @"MineTwoCellId";
            MineTwoCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
            if (cell == nil) {
                cell = [[[NSBundle mainBundle] loadNibNamed:@"MineTwoCell" owner:self options:nil] lastObject];
            }
            cell.backgroundColor = [UIColor whiteColor];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            if ([NSString isStringEmpty2:_tierXZ] == NO) {
                cell.xzTitleLabel.text = _tierXZ;
            } else {
                cell.xzTitleLabel.text = @"今日";
            }
           
            [cell.xzBtn addTarget:self action:@selector(timerXZBtnClick:) forControlEvents:UIControlEventTouchUpInside];
            if ([NSString isStringEmpty2:_getMemberScoreList.rcScoreNum] == NO) {
                cell.num1.text = _getMemberScoreList.rcScoreNum;
            } else {
                cell.num1.text = @"0";
            }
            if ([NSString isStringEmpty2:_getMemberScoreList.rgScoreNum] == NO) {
                cell.num2.text = _getMemberScoreList.rgScoreNum;
            } else {
                cell.num2.text = @"0";
            }
            if ([NSString isStringEmpty2:_getMemberScoreList.qyScoreNum] == NO) {
                cell.num3.text = _getMemberScoreList.qyScoreNum;
            } else {
                cell.num3.text = @"0";
            }
            //回款金额
            if ([NSString isStringEmpty2:_getMemberScoreList.returnAmount] == NO) {
                cell.num4.text = _getMemberScoreList.returnAmount;
            } else {
                cell.num4.text = @"0";
            }
            //认购金额
            if ([NSString isStringEmpty2:_getMemberScoreList.subscribeAmount] == NO) {
                cell.mony2.text = _getMemberScoreList.subscribeAmount;
            } else {
                cell.mony2.text = @"0";
            }
            //签约金额
            if ([NSString isStringEmpty2:_getMemberScoreList.signedAmount] == NO) {
                cell.mony3.text = _getMemberScoreList.signedAmount;
            } else {
                cell.mony3.text = @"0";
            }
           
            return cell;
        } else {
            NSString *cellId = @"MineThreeCellId";
            MineThreeCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
           
            if (cell == nil) {
                cell = [[[NSBundle mainBundle] loadNibNamed:@"MineThreeCell" owner:self options:nil] lastObject];
            }
            cell.backgroundColor = [UIColor whiteColor];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, EMM_WIDTH, 1)];
            imageView.backgroundColor = [UIColor colorFromHexCode:@"#e4e4e4"];
            [cell addSubview:imageView];
            UIImageView *imageView1 = [[UIImageView alloc] initWithFrame:CGRectMake(0, 9, EMM_WIDTH, 1)];
            imageView1.backgroundColor = [UIColor colorFromHexCode:@"#e4e4e4"];
            [cell addSubview:imageView1];
            cell.mineView.backgroundColor = [UIColor colorFromHexCode:@"#f7f7f7"];
            if (indexPath.row == 2) {
                
                cell.biaotIimageView.image = [UIImage imageNamed:@"my_yxb"];
                cell.biaotNameLabel.text = @"个人英雄榜";
            } else if (indexPath.row == 3) {
                cell.biaotIimageView.image = [UIImage imageNamed:@"my_set"];
                cell.biaotNameLabel.text = @"设置";
                UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 59, self.view.bounds.size.width, 1)];
                
                view.backgroundColor = [UIColor colorFromHexCode:@"e4e4e4"];
                [cell.contentView addSubview:view];
            }
            return cell;
        }
    } else if ([isGradesMine isEqualToString:@"1"] && [isHeroListMine isEqualToString:@"0"] && [isTeamRankingMine isEqualToString:@"0"]) {
        if (indexPath.row == 0) {
            NSString *cellId = @"MineOneCellId";
            MineOneCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
            if (cell == nil) {
                cell = [[[NSBundle mainBundle] loadNibNamed:@"MineOneCell" owner:self options:nil] lastObject];
            }
            cell.backgroundColor = [UIColor whiteColor];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            cell.touxiangImageView.frame = CGRectMake((EMM_WIDTH-80)/2, 45, 80, 80);
            [cell.touxiangImageView.layer setCornerRadius:(cell.touxiangImageView.frame.size.height/2)];
            [cell.touxiangImageView.layer setMasksToBounds:YES];
            [cell.touxiangImageView setContentMode:UIViewContentModeScaleAspectFill];
            [cell.touxiangImageView setClipsToBounds:YES];
            cell.touxiangImageView.layer.shadowColor = [UIColor blackColor].CGColor;
            cell.touxiangImageView.layer.shadowOffset = CGSizeMake(4, 4);
            cell.touxiangImageView.layer.shadowOpacity = 0.5;
            cell.touxiangImageView.layer.shadowRadius = 1.0;
            cell.touxiangImageView.layer.borderColor = [[UIColor whiteColor] CGColor];
            cell.touxiangImageView.layer.borderWidth = 1.0f;
            cell.touxiangImageView.userInteractionEnabled = YES;
            cell.touxiangImageView.backgroundColor = [UIColor blackColor];
            if ([_getMemberInfo.headPic isEqualToString:@""]) {
                
            } else {
                [cell.touxiangImageView sd_setImageWithURL:[NSURL URLWithString:_getMemberInfo.headPic] placeholderImage:[UIImage imageNamed:@"touxiang"]];
            }
            cell.nameLabel.text = _getMemberInfo.name;
            cell.phonLabel.text = _getMemberInfo.mobile;
            return cell;
        } else if (indexPath.row == 1) {
            NSString *cellId = @"MineTwoCellId";
            MineTwoCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
            if (cell == nil) {
                cell = [[[NSBundle mainBundle] loadNibNamed:@"MineTwoCell" owner:self options:nil] lastObject];
            }
            cell.backgroundColor = [UIColor whiteColor];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            if ([NSString isStringEmpty2:_tierXZ] == NO) {
                cell.xzTitleLabel.text = _tierXZ;
            } else {
                cell.xzTitleLabel.text = @"今日";
            }
            
            [cell.xzBtn addTarget:self action:@selector(timerXZBtnClick:) forControlEvents:UIControlEventTouchUpInside];
            if ([NSString isStringEmpty2:_getMemberScoreList.rcScoreNum] == NO) {
                cell.num1.text = _getMemberScoreList.rcScoreNum;
            } else {
                cell.num1.text = @"0";
            }
            if ([NSString isStringEmpty2:_getMemberScoreList.rgScoreNum] == NO) {
                cell.num2.text = _getMemberScoreList.rgScoreNum;
            } else {
                cell.num2.text = @"0";
            }
            if ([NSString isStringEmpty2:_getMemberScoreList.qyScoreNum] == NO) {
                cell.num3.text = _getMemberScoreList.qyScoreNum;
            } else {
                cell.num3.text = @"0";
            }
            //回款金额
            if ([NSString isStringEmpty2:_getMemberScoreList.returnAmount] == NO) {
                cell.num4.text = _getMemberScoreList.returnAmount;
            } else {
                cell.num4.text = @"0";
            }
            //认购金额
            if ([NSString isStringEmpty2:_getMemberScoreList.subscribeAmount] == NO) {
                cell.mony2.text = _getMemberScoreList.subscribeAmount;
            } else {
                cell.mony2.text = @"0";
            }
            //签约金额
            if ([NSString isStringEmpty2:_getMemberScoreList.signedAmount] == NO) {
                cell.mony3.text = _getMemberScoreList.signedAmount;
            } else {
                cell.mony3.text = @"0";
            }
     
            return cell;
        } else {
            NSString *cellId = @"MineThreeCellId";
            MineThreeCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
            if (cell == nil) {
                cell = [[[NSBundle mainBundle] loadNibNamed:@"MineThreeCell" owner:self options:nil] lastObject];
            }
            cell.backgroundColor = [UIColor whiteColor];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, EMM_WIDTH, 1)];
            imageView.backgroundColor = [UIColor colorFromHexCode:@"#e4e4e4"];
            [cell addSubview:imageView];
            UIImageView *imageView1 = [[UIImageView alloc] initWithFrame:CGRectMake(0, 9, EMM_WIDTH, 1)];
            imageView1.backgroundColor = [UIColor colorFromHexCode:@"#e4e4e4"];
            [cell addSubview:imageView1];
            cell.mineView.backgroundColor = [UIColor colorFromHexCode:@"#f7f7f7"];
            if (indexPath.row == 2) {
                cell.biaotIimageView.image = [UIImage imageNamed:@"my_set"];
                cell.biaotNameLabel.text = @"设置";
                UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 59, self.view.bounds.size.width, 1)];
                
                view.backgroundColor = [UIColor colorFromHexCode:@"e4e4e4"];
                [cell.contentView addSubview:view];
            }
            return cell;
        }
    } else if ([isGradesMine isEqualToString:@"0"] && [isHeroListMine isEqualToString:@"1"] && [isTeamRankingMine isEqualToString:@"0"]) {
        if (indexPath.row == 0) {
            NSString *cellId = @"MineOneCellId";
            MineOneCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
            if (cell == nil) {
                cell = [[[NSBundle mainBundle] loadNibNamed:@"MineOneCell" owner:self options:nil] lastObject];
            }
            cell.backgroundColor = [UIColor whiteColor];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            cell.touxiangImageView.frame = CGRectMake((EMM_WIDTH-80)/2, 45, 80, 80);
            [cell.touxiangImageView.layer setCornerRadius:(cell.touxiangImageView.frame.size.height/2)];
            [cell.touxiangImageView.layer setMasksToBounds:YES];
            [cell.touxiangImageView setContentMode:UIViewContentModeScaleAspectFill];
            [cell.touxiangImageView setClipsToBounds:YES];
            cell.touxiangImageView.layer.shadowColor = [UIColor blackColor].CGColor;
            cell.touxiangImageView.layer.shadowOffset = CGSizeMake(4, 4);
            cell.touxiangImageView.layer.shadowOpacity = 0.5;
            cell.touxiangImageView.layer.shadowRadius = 1.0;
            cell.touxiangImageView.layer.borderColor = [[UIColor whiteColor] CGColor];
            cell.touxiangImageView.layer.borderWidth = 1.0f;
            cell.touxiangImageView.userInteractionEnabled = YES;
            cell.touxiangImageView.backgroundColor = [UIColor blackColor];
            if ([_getMemberInfo.headPic isEqualToString:@""]) {
                
            } else {
                [cell.touxiangImageView sd_setImageWithURL:[NSURL URLWithString:_getMemberInfo.headPic] placeholderImage:[UIImage imageNamed:@"touxiang"]];
            }
            cell.nameLabel.text = _getMemberInfo.name;
            cell.phonLabel.text = _getMemberInfo.mobile;
            return cell;
        } else {
            NSString *cellId = @"MineThreeCellId";
            MineThreeCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
            if (cell == nil) {
                cell = [[[NSBundle mainBundle] loadNibNamed:@"MineThreeCell" owner:self options:nil] lastObject];
            }
            cell.backgroundColor = [UIColor whiteColor];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, EMM_WIDTH, 1)];
            imageView.backgroundColor = [UIColor colorFromHexCode:@"#e4e4e4"];
            [cell addSubview:imageView];
            UIImageView *imageView1 = [[UIImageView alloc] initWithFrame:CGRectMake(0, 9, EMM_WIDTH, 1)];
            imageView1.backgroundColor = [UIColor colorFromHexCode:@"#e4e4e4"];
            [cell addSubview:imageView1];
            cell.mineView.backgroundColor = [UIColor colorFromHexCode:@"#f7f7f7"];
            if (indexPath.row == 1) {
                
                cell.biaotIimageView.image = [UIImage imageNamed:@"my_yxb"];
                cell.biaotNameLabel.text = @"个人英雄榜";
            } else if (indexPath.row == 2) {
                cell.biaotIimageView.image = [UIImage imageNamed:@"my_set"];
                cell.biaotNameLabel.text = @"设置";
                UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 59, self.view.bounds.size.width, 1)];
                
                view.backgroundColor = [UIColor colorFromHexCode:@"e4e4e4"];
                [cell.contentView addSubview:view];
            }
            return cell;
        }
    } else if ([isGradesMine isEqualToString:@"0"] && [isHeroListMine isEqualToString:@"0"] && [isTeamRankingMine isEqualToString:@"1"]) {
        if (indexPath.row == 0) {
            NSString *cellId = @"MineOneCellId";
            MineOneCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
            if (cell == nil) {
                cell = [[[NSBundle mainBundle] loadNibNamed:@"MineOneCell" owner:self options:nil] lastObject];
            }
            cell.backgroundColor = [UIColor whiteColor];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            cell.touxiangImageView.frame = CGRectMake((EMM_WIDTH-80)/2, 45, 80, 80);
            [cell.touxiangImageView.layer setCornerRadius:(cell.touxiangImageView.frame.size.height/2)];
            [cell.touxiangImageView.layer setMasksToBounds:YES];
            [cell.touxiangImageView setContentMode:UIViewContentModeScaleAspectFill];
            [cell.touxiangImageView setClipsToBounds:YES];
            cell.touxiangImageView.layer.shadowColor = [UIColor blackColor].CGColor;
            cell.touxiangImageView.layer.shadowOffset = CGSizeMake(4, 4);
            cell.touxiangImageView.layer.shadowOpacity = 0.5;
            cell.touxiangImageView.layer.shadowRadius = 1.0;
            cell.touxiangImageView.layer.borderColor = [[UIColor whiteColor] CGColor];
            cell.touxiangImageView.layer.borderWidth = 1.0f;
            cell.touxiangImageView.userInteractionEnabled = YES;
            cell.touxiangImageView.backgroundColor = [UIColor blackColor];
            if ([_getMemberInfo.headPic isEqualToString:@""]) {
                
            } else {
                [cell.touxiangImageView sd_setImageWithURL:[NSURL URLWithString:_getMemberInfo.headPic] placeholderImage:[UIImage imageNamed:@"touxiang"]];
            }
            cell.nameLabel.text = _getMemberInfo.name;
            cell.phonLabel.text = _getMemberInfo.mobile;
            return cell;
        } else {
            NSString *cellId = @"MineThreeCellId";
            MineThreeCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
            if (cell == nil) {
                cell = [[[NSBundle mainBundle] loadNibNamed:@"MineThreeCell" owner:self options:nil] lastObject];
            }
            cell.backgroundColor = [UIColor whiteColor];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, EMM_WIDTH, 1)];
            imageView.backgroundColor = [UIColor colorFromHexCode:@"#e4e4e4"];
            [cell addSubview:imageView];
            UIImageView *imageView1 = [[UIImageView alloc] initWithFrame:CGRectMake(0, 9, EMM_WIDTH, 1)];
            imageView1.backgroundColor = [UIColor colorFromHexCode:@"#e4e4e4"];
            [cell addSubview:imageView1];
            cell.mineView.backgroundColor = [UIColor colorFromHexCode:@"#f7f7f7"];
            if (indexPath.row == 1) {
                cell.biaotIimageView.image = [UIImage imageNamed:@"my_team"];
                cell.biaotNameLabel.text = @"团队排名";
            } else if (indexPath.row == 2) {
                cell.biaotIimageView.image = [UIImage imageNamed:@"my_set"];
                cell.biaotNameLabel.text = @"设置";
                UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 59, self.view.bounds.size.width, 1)];
                
                view.backgroundColor = [UIColor colorFromHexCode:@"e4e4e4"];
                [cell.contentView addSubview:view];
            }
            return cell;
        }
    } else if ([isGradesMine isEqualToString:@"0"] && [isHeroListMine isEqualToString:@"0"] && [isTeamRankingMine isEqualToString:@"0"]) {
        if (indexPath.row == 0) {
            NSString *cellId = @"MineOneCellId";
            MineOneCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
            if (cell == nil) {
                cell = [[[NSBundle mainBundle] loadNibNamed:@"MineOneCell" owner:self options:nil] lastObject];
            }
            cell.backgroundColor = [UIColor whiteColor];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            cell.touxiangImageView.frame = CGRectMake((EMM_WIDTH-80)/2, 45, 80, 80);
            [cell.touxiangImageView.layer setCornerRadius:(cell.touxiangImageView.frame.size.height/2)];
            [cell.touxiangImageView.layer setMasksToBounds:YES];
            [cell.touxiangImageView setContentMode:UIViewContentModeScaleAspectFill];
            [cell.touxiangImageView setClipsToBounds:YES];
            cell.touxiangImageView.layer.shadowColor = [UIColor blackColor].CGColor;
            cell.touxiangImageView.layer.shadowOffset = CGSizeMake(4, 4);
            cell.touxiangImageView.layer.shadowOpacity = 0.5;
            cell.touxiangImageView.layer.shadowRadius = 1.0;
            cell.touxiangImageView.layer.borderColor = [[UIColor whiteColor] CGColor];
            cell.touxiangImageView.layer.borderWidth = 1.0f;
            cell.touxiangImageView.userInteractionEnabled = YES;
            cell.touxiangImageView.backgroundColor = [UIColor blackColor];
            if ([_getMemberInfo.headPic isEqualToString:@""]) {
                
            } else {
                [cell.touxiangImageView sd_setImageWithURL:[NSURL URLWithString:_getMemberInfo.headPic] placeholderImage:[UIImage imageNamed:@"touxiang"]];
            }
            cell.nameLabel.text = _getMemberInfo.name;
            cell.phonLabel.text = _getMemberInfo.mobile;
            return cell;
        } else {
            NSString *cellId = @"MineThreeCellId";
            MineThreeCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
            if (cell == nil) {
                cell = [[[NSBundle mainBundle] loadNibNamed:@"MineThreeCell" owner:self options:nil] lastObject];
            }
            cell.backgroundColor = [UIColor whiteColor];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, EMM_WIDTH, 1)];
            imageView.backgroundColor = [UIColor colorFromHexCode:@"#e4e4e4"];
            [cell addSubview:imageView];
            UIImageView *imageView1 = [[UIImageView alloc] initWithFrame:CGRectMake(0, 9, EMM_WIDTH, 1)];
            imageView1.backgroundColor = [UIColor colorFromHexCode:@"#e4e4e4"];
            [cell addSubview:imageView1];
            cell.mineView.backgroundColor = [UIColor colorFromHexCode:@"#f7f7f7"];
            if (indexPath.row == 1) {
                cell.biaotIimageView.image = [UIImage imageNamed:@"my_set"];
                cell.biaotNameLabel.text = @"设置";
                UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 59, self.view.bounds.size.width, 1)];
                
                view.backgroundColor = [UIColor colorFromHexCode:@"e4e4e4"];
                [cell.contentView addSubview:view];
            }
            return cell;
        }
    } else {
        if (indexPath.row == 0) {
            NSString *cellId = @"MineOneCellId";
            MineOneCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
            if (cell == nil) {
                cell = [[[NSBundle mainBundle] loadNibNamed:@"MineOneCell" owner:self options:nil] lastObject];
            }
            cell.backgroundColor = [UIColor whiteColor];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            cell.touxiangImageView.frame = CGRectMake((EMM_WIDTH-80)/2, 45, 80, 80);
            [cell.touxiangImageView.layer setCornerRadius:(cell.touxiangImageView.frame.size.height/2)];
            [cell.touxiangImageView.layer setMasksToBounds:YES];
            [cell.touxiangImageView setContentMode:UIViewContentModeScaleAspectFill];
            [cell.touxiangImageView setClipsToBounds:YES];
            cell.touxiangImageView.layer.shadowColor = [UIColor blackColor].CGColor;
            cell.touxiangImageView.layer.shadowOffset = CGSizeMake(4, 4);
            cell.touxiangImageView.layer.shadowOpacity = 0.5;
            cell.touxiangImageView.layer.shadowRadius = 1.0;
            cell.touxiangImageView.layer.borderColor = [[UIColor whiteColor] CGColor];
            cell.touxiangImageView.layer.borderWidth = 1.0f;
            cell.touxiangImageView.userInteractionEnabled = YES;
            cell.touxiangImageView.backgroundColor = [UIColor blackColor];
            if ([_getMemberInfo.headPic isEqualToString:@""]) {
                
            }else {
                [cell.touxiangImageView sd_setImageWithURL:[NSURL URLWithString:_getMemberInfo.headPic] placeholderImage:[UIImage imageNamed:@"touxiang"]];
            }
            cell.nameLabel.text = _getMemberInfo.name;
            cell.phonLabel.text = _getMemberInfo.mobile;
            return cell;
        } else {
            NSString *cellId = @"MineThreeCellId";
            MineThreeCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
            if (cell == nil) {
                cell = [[[NSBundle mainBundle] loadNibNamed:@"MineThreeCell" owner:self options:nil] lastObject];
            }
            cell.backgroundColor = [UIColor whiteColor];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, EMM_WIDTH, 1)];
            imageView.backgroundColor = [UIColor colorFromHexCode:@"#e4e4e4"];
            [cell addSubview:imageView];
            UIImageView *imageView1 = [[UIImageView alloc] initWithFrame:CGRectMake(0, 9, EMM_WIDTH, 1)];
            imageView1.backgroundColor = [UIColor colorFromHexCode:@"#e4e4e4"];
            [cell addSubview:imageView1];
            cell.mineView.backgroundColor = [UIColor colorFromHexCode:@"#f7f7f7"];
            if (indexPath.row == 1) {
                cell.biaotIimageView.image = [UIImage imageNamed:@"my_set"];
                cell.biaotNameLabel.text = @"设置";
                UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 59, self.view.bounds.size.width, 1)];
                
                view.backgroundColor = [UIColor colorFromHexCode:@"e4e4e4"];
                [cell.contentView addSubview:view];
            }
            return cell;
        }
    }
    return cell;
}

#pragma mark - UITableViewCell点击触发调用方法
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    NSUserDefaults *userdf = [NSUserDefaults standardUserDefaults];
    NSString *isGradesMine = [userdf objectForKey:@"isGradesMine"];//我的菜单权限下按钮权限：我的成绩
    NSString *isHeroListMine = [userdf objectForKey:@"isHeroListMine"];//我的菜单权限下按钮权限：个人英雄榜
    NSString *isTeamRankingMine = [userdf objectForKey:@"isTeamRankingMine"];//我的菜单权限下按钮权限：团队排名
    if ([isGradesMine isEqualToString:@"1"] && [isHeroListMine isEqualToString:@"1"] && [isTeamRankingMine isEqualToString:@"1"]) {
        if (indexPath.row == 2) {
            PersonalViewController *pvc = [[PersonalViewController alloc] init];
            pvc.hidesBottomBarWhenPushed = YES;
            [self.navigationController pushViewController:pvc animated:YES];
        } else if (indexPath.row == 3) {
            TeamViewController *tvc = [[TeamViewController alloc] init];
            tvc.hidesBottomBarWhenPushed = YES;
            [self.navigationController pushViewController:tvc animated:YES];
        } else if (indexPath.row == 4) {
            MyNewSetViewController *mvc = [[MyNewSetViewController alloc] init];
            mvc.hidesBottomBarWhenPushed = YES;
            mvc.headPic = _getMemberInfo.headPic;
            mvc.birthday = _getMemberInfo.birthday;
            mvc.entryTime = _getMemberInfo.entryTime;
            mvc.name = _getMemberInfo.name;
            [self.navigationController pushViewController:mvc animated:YES];
        }
    } else if ([isGradesMine isEqualToString:@"0"] && [isHeroListMine isEqualToString:@"1"] && [isTeamRankingMine isEqualToString:@"1"]) {
        if (indexPath.row == 1) {
            PersonalViewController *pvc = [[PersonalViewController alloc] init];
            pvc.hidesBottomBarWhenPushed = YES;
            [self.navigationController pushViewController:pvc animated:YES];
        } else if (indexPath.row == 2) {
            TeamViewController *tvc = [[TeamViewController alloc] init];
            tvc.hidesBottomBarWhenPushed = YES;
            [self.navigationController pushViewController:tvc animated:YES];
        } else if (indexPath.row == 3) {
            MyNewSetViewController *mvc = [[MyNewSetViewController alloc] init];
            mvc.hidesBottomBarWhenPushed = YES;
            mvc.headPic = _getMemberInfo.headPic;
            mvc.birthday = _getMemberInfo.birthday;
            mvc.entryTime = _getMemberInfo.entryTime;
            mvc.name = _getMemberInfo.name;
            [self.navigationController pushViewController:mvc animated:YES];
        }
    } else if ([isGradesMine isEqualToString:@"1"] && [isHeroListMine isEqualToString:@"0"] && [isTeamRankingMine isEqualToString:@"1"]) {
        if (indexPath.row == 2) {
            TeamViewController *tvc = [[TeamViewController alloc] init];
            tvc.hidesBottomBarWhenPushed = YES;
            [self.navigationController pushViewController:tvc animated:YES];
        } else if (indexPath.row == 3) {
            MyNewSetViewController *mvc = [[MyNewSetViewController alloc] init];
            mvc.hidesBottomBarWhenPushed = YES;
            mvc.headPic = _getMemberInfo.headPic;
            mvc.birthday = _getMemberInfo.birthday;
            mvc.entryTime = _getMemberInfo.entryTime;
            mvc.name = _getMemberInfo.name;
            [self.navigationController pushViewController:mvc animated:YES];
        }
    } else if ([isGradesMine isEqualToString:@"1"] && [isHeroListMine isEqualToString:@"1"] && [isTeamRankingMine isEqualToString:@"0"]) {
        if (indexPath.row == 2) {
            PersonalViewController *pvc = [[PersonalViewController alloc] init];
            pvc.hidesBottomBarWhenPushed = YES;
            [self.navigationController pushViewController:pvc animated:YES];
        } else if (indexPath.row == 3) {
            MyNewSetViewController *mvc = [[MyNewSetViewController alloc] init];
            mvc.hidesBottomBarWhenPushed = YES;
            mvc.headPic = _getMemberInfo.headPic;
            mvc.birthday = _getMemberInfo.birthday;
            mvc.entryTime = _getMemberInfo.entryTime;
            mvc.name = _getMemberInfo.name;
            [self.navigationController pushViewController:mvc animated:YES];
        }
    } else if ([isGradesMine isEqualToString:@"1"] && [isHeroListMine isEqualToString:@"0"] && [isTeamRankingMine isEqualToString:@"0"]) {
        if (indexPath.row == 2) {
            MyNewSetViewController *mvc = [[MyNewSetViewController alloc] init];
            mvc.hidesBottomBarWhenPushed = YES;
            mvc.headPic = _getMemberInfo.headPic;
            mvc.birthday = _getMemberInfo.birthday;
            mvc.entryTime = _getMemberInfo.entryTime;
            mvc.name = _getMemberInfo.name;
            [self.navigationController pushViewController:mvc animated:YES];
        }
    } else if ([isGradesMine isEqualToString:@"0"] && [isHeroListMine isEqualToString:@"1"] && [isTeamRankingMine isEqualToString:@"0"]) {
        if (indexPath.row == 1) {
            PersonalViewController *pvc = [[PersonalViewController alloc] init];
            pvc.hidesBottomBarWhenPushed = YES;
            [self.navigationController pushViewController:pvc animated:YES];
        } else if (indexPath.row == 2) {
            MyNewSetViewController *mvc = [[MyNewSetViewController alloc] init];
            mvc.hidesBottomBarWhenPushed = YES;
            mvc.headPic = _getMemberInfo.headPic;
            mvc.birthday = _getMemberInfo.birthday;
            mvc.entryTime = _getMemberInfo.entryTime;
            mvc.name = _getMemberInfo.name;
            [self.navigationController pushViewController:mvc animated:YES];
        }
    } else if ([isGradesMine isEqualToString:@"0"] && [isHeroListMine isEqualToString:@"0"] && [isTeamRankingMine isEqualToString:@"1"]) {
         if (indexPath.row == 1) {
            TeamViewController *tvc = [[TeamViewController alloc] init];
            tvc.hidesBottomBarWhenPushed = YES;
            [self.navigationController pushViewController:tvc animated:YES];
        } else if (indexPath.row == 2) {
            MyNewSetViewController *mvc = [[MyNewSetViewController alloc] init];
            mvc.hidesBottomBarWhenPushed = YES;
            mvc.headPic = _getMemberInfo.headPic;
            mvc.birthday = _getMemberInfo.birthday;
            mvc.entryTime = _getMemberInfo.entryTime;
            mvc.name = _getMemberInfo.name;
            [self.navigationController pushViewController:mvc animated:YES];
        }
    } else if ([isGradesMine isEqualToString:@"0"] && [isHeroListMine isEqualToString:@"0"] && [isTeamRankingMine isEqualToString:@"0"]) {
        if (indexPath.row == 1) {
            MyNewSetViewController *mvc = [[MyNewSetViewController alloc] init];
            mvc.hidesBottomBarWhenPushed = YES;
            mvc.headPic = _getMemberInfo.headPic;
            mvc.birthday = _getMemberInfo.birthday;
            mvc.entryTime = _getMemberInfo.entryTime;
            mvc.name = _getMemberInfo.name;
            [self.navigationController pushViewController:mvc animated:YES];
        }
    } else {
        if (indexPath.row == 1) {
            MyNewSetViewController *mvc = [[MyNewSetViewController alloc] init];
            mvc.hidesBottomBarWhenPushed = YES;
            mvc.headPic = _getMemberInfo.headPic;
            mvc.birthday = _getMemberInfo.birthday;
            mvc.entryTime = _getMemberInfo.entryTime;
            mvc.name = _getMemberInfo.name;
            [self.navigationController pushViewController:mvc animated:YES];
        }
    }
}

@end
